# -*- coding: UTF-8 -*-
from django.urls import path

from . import views


app_name = 'blog'
urlpatterns = [
    # path('', views.index, name='index'),
    path(r'', views.IndexView.as_view(), name='index'),
    path('post/<int:pk>',views.detail, name='detail'),
    path(r'^archives/(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/$', views.archives, name='archives'),
    # path(r'^category/(?P<pk>[0-9]+)/$', views.category, name='category'),
    path(r'^category/(?P<pk>[0-9]+)/$', views.CategoryView.as_view(), name='category'),
]